import {http} from "@/interceptor/luch-request/index.js"

// 创建
export const saveSchoolNews = (data) => {
    return http.post("api/admin/schoolNews/v1/saveSchoolNews", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 编辑
export const updateSchoolNews = (data) => {
    return http.put("api/admin/schoolNews/v1/updateSchoolNews", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

// 列表
export const pageSchoolNews = (data) => {
	return http.get("api/admin/schoolNews/v1/pageSchoolNews", {
		data: data
	});
}
 
// 删除
export const deleteSchoolNews = (data) => {
 return http.delete("api/admin/schoolNews/v1/deleteSchoolNews",data,{
	header:{
		"content-type": "application/json"
	}
});	
} 
